<?php
namespace Wechat\Controller;
use Org\Util\Wechat;
use Common\Controller\AdminbaseController;
class BaseController extends AdminbaseController
{

    public function _initialize()
    {
        $op = M('wechat')->find(1);
        $options = [
            'token'=>$op['token'],
            'appid'=>$op['appid'],
            'appsecret'=>$op['appsecret'],
        ];
        $weObj = new Wechat($options);
    }
}